* {
    margin: 0;
    padding: 0;
}

ul li {
    list-style: none;
}

.container {
    width: 1020px;
    height: 585px;
    border: 4px solid #ccc;
    margin: 50px auto;
    position: relative;
}

.container .rotation {
    width: 100%;
    height: 100%;
    position: relative;
}

.container .rotation li {
    display: none;
    position: absolute;
}

.container .rotation li img {
    width: 100%;
    height: 100%;
    vertical-align: top;
}

.container .btn {
    width: 50px;
    height: 75px;
    background-color: rgba(0, 0, 0, 0.2);
    position: absolute;
    text-align: center;
    line-height: 75px;
    font-size: 30px;
    color: #f5f5f5;
    display: none;
}

.container .pre {
    left: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    border-radius: 0 5px 5px 0;
}

.container .next {
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    border-radius: 5px 0 0 5px;
}

.container .nav {
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    bottom: 10px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 240px;
}

.container .nav li {
    width: 10px;
    height: 10px;
    background-color: #fff;
    border-radius: 50%;
    float: left;
    cursor: pointer;
}

.container .nav .active {
    background-color: #ccc;
    border: 3px solid #f5f5f5;
}